Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@davidtaylorhq
Copy link
Member

  • Update controller:topic modification to native class syntax
  • Remove search-result-entry modification in favour of plugin-outlet-based solution

- Update `controller:topic` modification to native class syntax
- Remove search-result-entry modification in favour of plugin-outlet-based solution
@davidtaylorhq davidtaylorhq marked this pull request as draft December 2, 2024 13:21
Comment on lines +5 to +7
function addResultClass(element) {
element.closest(".fps-result")?.classList.add("ai-result");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up: this needs to be conditionally shown only on posts that have generatedByAi not on all search results:

Copy link
Member Author

@davidtaylorhq davidtaylorhq Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @keegangeorge!

I'd assumed that the 'sparkles' icon was only rendered on those results... but now that I look more closely it seems like we're rendering it on every result and then hiding with CSS? 😬

Anyway, I'm not too happy with this .closest() technique. Will close out this PR and make a new one when we have a better strategy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants